{temp('kefu/head')}
</head>
<body>
	<div class="pd-20">
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">
						<th width="50">用户id</th>
						<th width="50">对方id</th>
						<th>聊天内容</th>
						<th width="200">聊天时间</th>
					</tr>
				</thead>
				<tbody>
					{foreach($r as $k => $v)}
					<tr class="text-c">
						<td>{$v['uid']}</td>
						<td>{$v['did']}</td>
						<td><div style="width:800px;">{$v['content']}</div></td>
						<td>{code(echo date('Y-m-d H:i:s',$v['time']))}</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
	</div>
	{temp('kefu/foot')}
	<script type="text/javascript">
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
	});
	
	/*资讯-编辑*/
	function article_edit(title,url,id,w,h){
		var index = layer.open({
			type: 2,
			title: title,
			content: url
		});
		layer.full(index);
	}
	</script>
</body>
</html>